import { Module } from '@nestjs/common'
import { ItemsService } from './items.service'
import { ItemsController } from './items.controller'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Item } from './entities/item.entity'
import { Photo } from './entities/photo.entity'
import { Comment } from 'src/users/entities/comment.entity'
import { Favorite } from 'src/users/entities/favorite.entity'
import { History } from 'src/users/entities/history.entity'

@Module({
  imports: [
    TypeOrmModule.forFeature([Item, Photo, Comment, Favorite, History])
  ],
  providers: [ItemsService],
  controllers: [ItemsController],
  exports: [ItemsService, TypeOrmModule]
})
export class ItemsModule {}
